<?php 
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
include '../showscreen.php';
$CT = new showscreen();
$winW = $_REQUEST['winW'];
$winH = $_REQUEST['winH'];
$vnumb=$_REQUEST['numb'];
$idmo=$_REQUEST['idmo'];
$vidcam=$_REQUEST['idcam'];
$idone=$_REQUEST['idone'];
$bd=$_REQUEST['bd'];
$kt=$_REQUEST['kt'];
$numb=1;
$onewidth=$winW-6;
$oneheight=($winH-120);
$mfont=($onewidth / 50)."px";
if(isset($_SESSION['onecarview'])){
	$CT = unserialize (serialize ($_SESSION['onecarview']));
}
?>
<input id="vonecarid" type="hidden" value="<?=$CT->idx?>" />
<input id="vonecaridmo" type="hidden" value="<?=$idmo?>" />
<input id="vonecaridcam" type="hidden" value="<?=$vidcam?>" />
<table width="100%" height="88%" border="0" style="background:none; cellsapcing:5px;border-collapse: separate;" onmousedown="return false" onselectstart='return false;'>
	<tr>
		<td style="background-size:<?php echo $onewidth."px"?> <?php echo $oneheight."px"?>;background-repeat:no-repeat;">
			<div  id="<?php echo 'hinh'.($i+1)?>" ondblclick="loadContentHome(<?=$vnumb?>,<?=$bd?>,<?=$kt?>)" style="background-image:url('images/noimage.jpg') no-repeat center;background-size:<?php echo $onewidth."px"?> <?php echo $oneheight."px"?>;background-repeat:no-repeat;width:<?php echo $onewidth."px"?>;height:<?php echo $oneheight."px"?>;position:relative;">
				<div style="position:absolute;">
					<img src="<?=$CT->image?>" style='width:<?php echo $onewidth."px"?>;height:<?php echo $oneheight."px"?>;border: 1px solid #CFD6D9;border-radius: 2px;' onerror="this.src='images/noimage.jpg';" />
				</div>
				<div style="position:absolute;">
				<table style="background:none;padding:1%;width:<?php echo $onewidth."px"?>;height:<?php echo $oneheight."px"?>;" border="0">
					<tr >
						<td valign="top" >
							<table width="100%" border="0" style="background:none; ">
								<tr>
									<td align="left" valign="top"  style="color: yellow;font-size:<?php echo $mfont;?>;"><?php echo $CT->name?></td>
									<td align="right" valign="top">
										<?php if ($CT->light == 1) {?>
						              	<img src='images/circle-green.png' style='width:13px;height:13px;'>
						              	<?php }else if ($CT->light == 0){?>
						              		<img src='images/circle_red.png' style='width:13px;height:13px;'>
						              <?php }?>
									</td>
								</tr>
							</table>
						</td>
					<tr>
					<tr>
						<td valign="bottom" height="40%">
							<table width="100%" border="0" height="100%" style="background:none; ">
								<tr>
									<td align="left" valign="bottom" width="50%" ><img src="images/pre1.png" onclick="view_prenext_car('pre',<?=$vnumb?>,<?=$CT->id?>,<?=$idmo?>,'<?=$CT->car_datetime?>',<?=$bd?>,<?=$kt?>);" style="cursor:pointer;padding-left:3%" /></td>
									<td align="right" valign="bottom" width="50%" ><img src="images/next1.png" onclick="view_prenext_car('next',<?=$vnumb?>,<?=$CT->id?>,<?=$idmo?>,'<?=$CT->car_datetime?>',<?=$bd?>,<?=$kt?>);" style="cursor:pointer;padding-right:3%" /></td>
								</tr>
								<tr>
									<td colspan="2" align="right" valign="bottom"   style="color: yellow;font-size:<?php echo $mfont;?>;"><?=$CT->distance?></td>
								</tr>
								<tr>
									<td align="left" valign="middle"   style="color: yellow;font-size:<?php echo $mfont;?>;"><?=$CT->car_datetime?></td>
									<td align="right" valign="middle"  style="color: yellow;font-size:<?php echo $mfont;?>;"><?=$CT->vstriger_type?></td>
								<tr>
								<tr>
									<td colspan="2"   valign="middle">
										<table width="100%" border="0" style="background:none; ">
											<tr>
												<td align="left" valign="bottom"  style="width:30%;color: yellow;font-size:<?php echo $mfont;?>;"><?=$CT->platecar?></td>
												<td align="center" valign="bottom"  style="width:40%;color: yellow;font-size:<?php echo $mfont;?>;">
													Width : <?=$onewidth?>
													Height : <?=$oneheight?>
												</td>
												<td align="center" valign="bottom" style="width:30%;color: yellow;font-size:<?php echo $mfont;?>;">
													<a href="download.php" style='color:#1268f8;font-size:<?=$mfont?>'>Download</a>
												</td>
											</tr>
										</table>
									</td>
								<tr>
								<tr>
									<td colspan="2" align="left"  valign="bottom" style="color: yellow;font-size:<?php echo $mfont;?>;">Filename: <?=$CT->filename?></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
				</div>
			</div>
		</td>
	</tr>
</table>